import request from '@/utils/request'
export default{
    getPid() {
        return request({
          url: '/vue-admin-template/patient/getPid',
          method: 'get',
        })
    },
    getDeptList(){
        return request({
            url: '/vue-admin-template/dept/getDeptList',
            method: 'get',
          })
    },
    getLevelList(){
      return request({
          url: '/vue-admin-template/level/getLevelList',
          method: 'get',
        })
  },
  getPatientList(){
    return request({
        url: '/vue-admin-template/patient/getPatientList',
        method: 'get',
      })
},
    getDoctorListById(deptid){
        return request({
            url: '/vue-admin-template/doctor/getDoctorListById?deptid='+deptid,
            method: 'get',
          })
    },
    savePatient(patient){
      return request({
        url:'/vue-admin-template/patient/savePatient',
        method:'post',
        data:patient
      })
    },
    getPatientListPage(page,pageSize){
      return request({
          url: `/vue-admin-template/patient/getPatientListPage?page=${page}&pageSize=${pageSize}`,
          method: 'get',
        })
  },
  getPatientListPage2(page,pageSize,pname){
    return request({
        url: `/vue-admin-template/patient/getPatientListPage2?page=${page}&pageSize=${pageSize}&pname=${pname}`,
        method: 'get',
      })
},

  getPatientById(pid){
    return request({
        url: `/vue-admin-template/patient/getPatientById?pid=${pid}`,
        method: 'get',
      })
},
updatePatientById(pid){
  return request({
      url: `/vue-admin-template/patient/updatePatientById?pid=${pid}`,
      method: 'get',
    })
},
getPatientListByStatus1(){
  return request({
    url: `/vue-admin-template/patient/getPatientListByStatus1`,
    method: 'get',
  })
},
getPatientListByStatus3(){
  return request({
    url: `/vue-admin-template/patient/getPatientListByStatus3`,
    method: 'get',
  })
},
getPatientBeanByPatientId(pid){
  return request({
    url: `/vue-admin-template/patient/getPatientBeanByPatientId?pid=${pid}`,
    method: 'get',
  })
},
getPatientListByPname(pname){
  return request({
    url: `/vue-admin-template/patient/getPatientListByPname?pname=${pname}`,
    method: 'get',
  })
},
}